#!/usr/bin/env python
#-*- coding: UTF-8 -*- 

info= raw_input("Info: ")

screen_width = 80
text_width = len(info)
box_width = text_width + 6
left_margin = (screen_width - box_width) // 2

print 'Text_len: ' + str(text_width) + 'Box_len: ' + str(box_width) + 'left: ' + str(left_margin)

print
print ' ' * left_margin + '+' + '-' * (box_width - 2) + '+'
print ' ' * left_margin + '|' + ' ' * (box_width - 2) + '|'
print ' ' * left_margin + '|' + '  ' + info + '  ' + '|'
print ' ' * left_margin + '|' + ' ' * (box_width - 2) + '|'
print ' ' * left_margin + '+' + '-' * (box_width - 2) + '+'
